<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>判断100以内能被3和5整除的正整数</title>
</head>
<body>
    <script>
        document.write("<pre>")
        let a=function(num){
            if(num % 3==0 && num%5==0){
                return true;
            }else{
                return false;
            }
        }
        let n=0;
        for(i=1;i<=1000;i++){
            if(a(i)){
                n++;
                document.write(i+"\t")
                if(n%7==0){
                    document.write("\n")
                }
            }
        }
        document.write("</pre>")
    </script>
</body>
</html>